<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('更改店铺类型')" />
    <th:block th:include="include :: bootstrap-fileinput-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-repairStore-edit" th:object="${zsyhUserRepairstore}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">选择店铺类型：</label>
                    <div class="col-sm-8">
                        <select id="storeClassify" name="storeClassify" class="form-control m-b" th:with="type=${@dict.getType('store_type')}">
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{storeClassify}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <div class="row" style="display: flex;align-items: center;text-align: center">
        <div class="col-sm-offset-5 col-sm-10" style="width: 100%;align-items: center">
            <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>提 交</button>&nbsp;
            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem1()"><i class="fa fa-reply-all"></i>关 闭 </button>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: bootstrap-fileinput-js"/>
<script th:inline="javascript">
    var prefix = ctx + "zsyh/repairStore";
    $("#form-repairStore-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-repairStore-edit').serialize());
        }
    }


    function closeItem1() {
        $.modal.close();
    }

</script>
</body>
</html>